﻿QTreeView {
    /*alternate-background-color: rgb(57, 61, 72);*/
    background-color: rgb(33,38,40);
    show-decoration-selected: 1; /*设计item一行中的branch和item为一个整体，默认为0*/
    font: normal 12pt "微软雅黑";
}

    QTreeView QHeaderView::section {
        border: none;
        background-color: rgb(33,38,40);
        font: normal 12pt "微软雅黑";
        color: white;
    }
QTreeView::item
{
    border: none;
    height: 30px;
    color:white;
}

/*--鼠标悬停*/
QTreeView::item:hover,
QTreeView::branch:hover {
    background-color: rgb(104,104,104);
}

/*--选中item时，item和前面的branch显示一样的颜色*/
    QTreeView::item:selected,
    QTreeView::branch:selected {
        background-color: rgb(255,0,0);
    }

/*--鼠标悬停，并选中*/
    QTreeView::item:selected:hover,
    QTreeView::branch:selected:hover {
        background-color: rgb(60,60,60);
    }